package com.xfpp.javaDemo.factory.abstractFactory;

public class FactoryTest {
	public static void main(String[] args) {
		AbstractFactory af = new MagicFactory();
		Vehicle v = af.createVehicle();
		v.run();
		Weapon w = af.createWeapon();
		w.shoot();
		Food f = af.createFood();
		f.printName();
	}
}
